{% extends 'admin/index.html' %}
{% block body %}
<div class="jumbotron">
    <h1>定时调度系统</h1>
    <p>通过在本系统后台配置调度任务，轻松触发日常系统中基于HTTP接口的定时处理任务.</p>
</div>
<div>

    {% if current_user.is_authenticated %}
    <h3>欢迎访问本系统，当前账号：{{current_user.username}}  <a class="btn btn-danger btn-sm" href="/admin/logout/">注销离开</a></h3>
    {% else %}
    <form method="POST" action="/admin/login/">
        <div class="form-group">
            <input type="text" class="form-control"  name="login_name" placeholder="用户名" autocomplete="off">
        </div>
        <div class="form-group">
            <input type="password" class="form-control" name="login_pwd"  placeholder="密码" autocomplete="off">
        </div>
        <div class="form-group">
            <button type="submit" class="btn btn-primary form-control">登录</button>
        </div>

    </form>
    {{ msg | safe }}
    {% endif %}
</div>

{% endblock %}